package com.sunwayworld.baseline.qywx.login.resource;

import com.sunwayworld.framework.log.annotation.Log;
import com.sunwayworld.framework.log.annotation.LogType;
import com.sunwayworld.framework.security.bean.QrCodeLoginStatusDTO;
import com.sunwayworld.baseline.qywx.login.bean.QywxQrCodeDTO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/qywx")
public interface QywxLoginResource {

    @RequestMapping("/qrCode")
    QywxQrCodeDTO getQrCode();

    @RequestMapping("/scan")
    QrCodeLoginStatusDTO scan();

    @Log(value = "同步企业微信", type = LogType.UPDATE)
    @PostMapping("/syncQywx")
    void syncQywx();

}
